package servlets.exemplos;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class ExemploServlet07
 */
@WebServlet("/Ex/ES07")
public class ExemploServlet07 extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * {@inheritDoc}
	 */
	@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		response.setContentType("text/html");
		PrintWriter out = response.getWriter();

		out.println("<html>");
		out.println("<body>");

		out.println("<center>");
		out.println("<h2>Insira seus dados para efetuar o login</h2>");
		out.println("</center>");
		out.println("<table border='0' width='400'>");
		out.println("<tr>");
		out.println("<td>");
		out.println("<form method='post' action='ES08'>");
		out.println("<font face='verdana' size='2'>");
		out.println("ID:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>");
		out.println("<input type='text' name='ID' size='20'>");
		out.println("<br>");
		out.println("<font face='verdana' size='2'>");
		out.println("Senha:</font>");
		out.println("<input type='password' name='senha' size='20'><br>");
		out.println("</td>");
		out.println("</tr>");
		out.println("<tr>");
		out.println("<td align='center'>");
		out.println("<input type='submit' value='Entrar' name='S1'>");
		out.println("&nbsp;");
		out.println("<input type='reset' value='Limpar' name='S2'>");
		out.println("</td>");
		out.println("</tr>");
		out.println("</table>");

		out.println("</body>");
		out.println("</html>");

	}

}
